<?php

class base {
	
	public function __construct() {
		self::fireWareFilter();
		$siteid=isset($_GET['siteid']) ? intval($_GET['siteid']) : get_siteid();
		define("SITEID",$siteid);
	}

 	/**
	 * 参数过滤
	 */
	private function fireWareFilter() {
		$fireware = pc_base::load_sys_class('Fireware');
		$param = array();
		$fireware -> run($param);
	}

	/**
     * 显示404页面
     */
    public function  show404 ()
    {
        include template('content', 'show_404');
		die;
    }

    /**
	 * IP禁止判断 ...
	 */
	final private function check_ip ()
	{
		$this->ipbanned = pc_base::load_model('ipbanned_model');
		$this->ipbanned->check_ip();
 	}
	
}